<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> 
<head> 
<title>Jsp+Servlet upload file</title> 
</head> 
<body> 
  <form action="UploadServlet" method="POST" enctype="multipart/form-data"> 
    <input type ="file" name="file1" id="file1"/><br/> 
    <input type ="file" name="file2" if="file2"/><br/> 
    <input type ="file" name="file3" id="file3"/><br/> 
    <input type="submit" value="Submit" /><br/> 
    <input type="reset" /> 
  </form> 
</body> 
</html> 